﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;

namespace OpenLS.Spreadsheet
{
    internal class SingleCellRegion : CellRegion
    {
        private readonly Cell _cell;

        public SingleCellRegion(Cell cell)
        {
            Contract.Requires(cell != null);
            _cell = cell;
        }

        protected override IEnumerable<Cell> GetAllCells()
        {
            yield return _cell;
        }
        public override ClusterImpact GetClusterImpact(CellClusterKey key)
        {
            return ClusterImpact.Unknown; 
        }
    }
}